Rust-Modifier
Chaining APIs for both
self -> Self
and&mut self
methods.
Example
let mut thing = Thing ;
thing.set_mut;
assert_eq!;
let thing = thing.set;
assert_eq!;
Overview
Rust-modifier allows you to define modifiers just once, then
use them through both set
and set_mut
, allowing downstream
users the ability to use whichever API is most convenient.
Additionally, rust-modifier allows users to define their own modifiers, arbitrarily extending the utility of existing types.
LICENSE
MIT